package com.venus.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * layui的树要的模块
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TreeNode {
    private String title;//mname 模块名
    private Integer id;//mid 模块id
    private List<TreeNode> children;//子节点
    private String href;//mpath 路径
    private Boolean spread;//节点是否展开，默认false
    private Boolean checked;//节点是否默认选中，默认false
    public TreeNode(String title, Integer id, List<TreeNode> children, String href) {
        super();
        this.title = title;
        this.id = id;
        this.children = children;
        this.href = href;
    }



}
